<? include('layer/head.html'); ?>

<body class="ly13 usercenter">
	<? include('layer/topnav.html'); ?>
	<? include('layer/header.html'); ?>
	<div class="contenter clrfix">

    	<div class="aside_left">
        	<img class="profile_photo" src="<?php echo $viewuser['avatar'];?>">
            <div class="trend_left_bar">
            	<p><?php echo $viewuser['nickname'];?></p>
            	<ul class="clrfix">
                	<li><img src="http://static.9xiu.com/www/img/blank.gif" class="icon_live_level icon_live_level_9"></li>
                    <li>
                        <div class="progress_bar">
                        	<div class="cover cover_live" style="width:50px;"></div>
                        </div>
                    </li>
                </ul>
                <ul class="clrfix">
                	<li><img src="http://static.9xiu.com/www/img/blank.gif" class="icon_live_level icon_live_level_9"></li>
                    <li>
                        <div class="progress_bar">
                        	<div class="cover cover_live" style="width:50px;"></div>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="menu2">
                <div class="box_border">
                    <div class="wrap">
                        <div class="hd">粉丝数量&nbsp;<?php echo $fanscount;?> <br /><?php if(1 == $viewuser['usertype']){?>上次直播<?php echo Date('Y-m-d H:i:s',$opentime);}?></div>
                    </div>
                </div>
            </div>
        </div>
        
    	<div class="article">
            <div class="box_border">
            	<div class="wrap section">
                    <div class="hd"><?php echo $viewuser['nickname'];?> 的动态</div>
                    <form class="bd">
                    <?php if($viewuser['uid'] == $userinfo['uid']){?>
                    	<div class="trend_textarea mpt a_room_dynamic_face">
                        	<textarea class="dynamic_input textareas"></textarea>
                        	<div class="textarea_sub clrfix">
                            	<a href="javascript:;" class="button_18 publishbtn" parent=0>发布动态</a>
                            	
                                    <a href="javascript:;" class="icon_chat_face pngFix"></a>
                                    <div class="face_div_panel hide">
                                    <div class="face_list clrfix" id="face_page_1">
                                        <?php
                                            for($j=1; $j<=30; $j++)
                                            {
                                            ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                            <?
                                            }
                                        ?>
                                    </div>
                                    <div class="face_list clrfix hide" id="face_page_2">
                                        <?php
                                            for($j=31; $j<=60; $j++)
                                            {
                                            ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                            <?
                                            }
                                        ?>
                                    </div>
                                    <div class="face_list clrfix hide" id="face_page_3">
                                        <?php
                                            for($j=61; $j<=74; $j++)
                                            {
                                            ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                            <?
                                            }
                                        ?>
                                    </div>
                                    <div class="face_paging"> <a href="javascript:;" class="face_page_handle" p="1">1</a> <a href="javascript:;" class="face_page_handle" p="2">2</a> <a href="javascript:;" class="face_page_handle" p="3">3</a></div>
                                    </div>
                               
                            </div>
                        </div>
                        <?php }?>
                        <div class="trend_list">
                        	<?php if($dynamiclist && empty($dynamiclist['nodata'])){foreach($dynamiclist as $key=>$val){?>
                        	<ul class="mpt a_room_dynamic_publish">
                                <li><span class="color_D37859"><?php echo $val['nickname'];?></span> 发布了1条动态</li>
                                <li class="trend_cont" detail="<?php echo $val['content'];?>"></li>
                                <li class="trend_handle clrfix"><span class="parent_comment_total" parent="<?php echo $val['id'];?>">评论（<?php echo $val['count'];?>）</span><b><?php echo Date('Y-m-d H:i:s',$val['addtime']);?></b></li>
                                <li class="trend_comment hide">
                                	<div class="trend_comment_cont mpt a_room_dynamic_face">
                                    	<b class="jiantou"></b>
                                    	<div class="trend_comment_top">
                                        	<span class="faces_comment top_12">
                                                 <a href="javascript:;" class="icon_chat_face pngFix"></a>
                                                 <div class="face_div_panel hide" style="display:block" >
                                   <div class="face_list clrfix" id="face_page_1">
                                        <?php
                                            for($j=1; $j<=30; $j++)
                                            {
                                            ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                            <?
                                            }
                                        ?>
                                    </div>
                                    <div class="face_list clrfix hide" id="face_page_2">
                                        <?php
                                            for($j=31; $j<=60; $j++)
                                            {
                                            ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                            <?
                                            }
                                        ?>
                                    </div>
                                    <div class="face_list clrfix hide" id="face_page_3">
                                        <?php
                                            for($j=61; $j<=74; $j++)
                                            {
                                            ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                            <?
                                            }
                                        ?>
                                    </div>
                                    <div class="face_paging"> <a href="javascript:;" class="face_page_handle" p="1">1</a> <a href="javascript:;" class="face_page_handle" p="2">2</a> <a href="javascript:;" class="face_page_handle" p="3">3</a></div>
                                                </div>
                                   			</span>
                                            <span>
                                                    <div class="input_wrap">
                                                        <input type="text" value="" class="dynamic_input">
                                                        <div class="border_end"></div>
                                                    </div>
                                                </span>&nbsp;
                                       		<a href="javascript:;" class="button_4 top_12 publishbtn" parent=<?php echo $val['id'];?> touid='<?php echo $val['uid'];?>' tonick='<?php echo $val['nickname'];?>'>发送</a>
                                            <p>
                                            	<label class="checkbox"><input type="checkbox" class="is_self" />&nbsp;同时转发到我的动态</label>
                                            </p>
                                        </div>
                                    </div>
                                </li>
                        	</ul>
                            <?php }}?>
                        </div>
                        
                    <? if($dynamiclist && empty($dynamiclist['nodata']))include('layer/pagination.html'); ?>
                    </form>
                </div>
            </div>
        </div>
    	
</div>
	<? include('layer/footer.html'); ?>
<? include('layer/foot.html'); ?>
<? include('layer/jsstart.html'); ?>
